-- GENERATED SPELL FOR [Runic Colossus] --


function spell0_32872(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(62613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32872', 641, 1)
end

function spell1_32872(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(62614,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32872', 609, 1)
end

function spell2_32872(pUnit, Event) --@Runic Barrier,Self--
pUnit:FullCastSpellOnTarget(62338,pUnit)
pUnit:RegisterEvent('Sorts_32872', 20350, 1)
end

function spell3_32872(pUnit, Event) --@Smash,Self--
pUnit:FullCastSpellOnTarget(62339,pUnit)
pUnit:RegisterEvent('Sorts_32872', 3000, 1)
end

function Sorts_32872(pUnit, Event)
local choix_sorts_32872 = math.random(0, 3)
if choix_sorts_32872 == 0 then
pUnit:RegisterEvent('spell0_32872', 1, 1)
end
if choix_sorts_32872 == 1 then
pUnit:RegisterEvent('spell1_32872', 1, 1)
end
if choix_sorts_32872 == 2 then
pUnit:RegisterEvent('spell2_32872', 1, 1)
end
if choix_sorts_32872 == 3 then
pUnit:RegisterEvent('spell3_32872', 1, 1)
end
end

function mob32872_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32872', math.random(1500, 3000), 1)
end

function mob32872_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32872_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32872_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32872, 1, 'mob32872_Action')
RegisterUnitEvent(32872, 2, 'mob32872_Leave')
RegisterUnitEvent(32872, 3, 'mob32872_Kill')
RegisterUnitEvent(32872, 4, 'mob32872_Die')
